version: '3'

services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    environment:
      - VPN_SERVICE_PROVIDER=custom
      - VPN_TYPE=wireguard
      - VPN_ENDPOINT_IP=
      - VPN_ENDPOINT_PORT=51820
      - WIREGUARD_PUBLIC_KEY=
      - WIREGUARD_PRIVATE_KEY=
      - WIREGUARD_PRESHARED_KEY=
      - WIREGUARD_ADDRESSES=
    networks:
      - torrent-net


  geoipc:
    build: .
    network_mode: service:gluetun

networks:
    torrent-net:
        name: torrent-net
        driver: bridge
        ipam:
            config:
                - subnet: 10.0.0.0/16
